<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页 - 智慧洛龙管理系统</title>
    <style type="text/css">
        html,body {
            margin:0;
            height:100%;
        }
    </style>
    <script src="/static/js/common/CreateControl.6.6.js" type="text/javascript"></script>
    <%
    var one;
    var two;
    if(isNotEmpty(merchantBrandOptionalList)){
    one = merchantBrandOptionalList[0];
    two = merchantBrandOptionalList.~size >= 2 ? merchantBrandOptionalList[1];
    }
    %>
    <script type="text/javascript">
        //在网页初始加载时向报表提供数据
        function window_onload() {
            ReportViewer.Stop();
            var Report = ReportViewer.Report;
            //经营者
            Report.ParameterByName("name").AsString = "${member.name!}";
            Report.ParameterByName("phone").AsString = "${member.phone!}";
            Report.ParameterByName("tel").AsString = "";
            Report.ParameterByName("email").AsString = "${member.email!}";
            Report.ParameterByName("sex").AsString = "${decode(member.sex,1,'男',2,'女','男')}";
            Report.ParameterByName("zipCode").AsString = "";
            Report.ParameterByName("cardNumber").AsString = "${member.cardNumber!}";
            Report.ParameterByName("education").AsString = "${webUtil.memberEdu(member.education)}";
            Report.ParameterByName("address").AsString = "${member.address!}";
            Report.ParameterByName("nation").AsString = "${member.nation!}";
            Report.ParameterByName("politicsStatus").AsString = "${member.politicsStatus!}";
            Report.ParameterByName("workStatus").AsString = "${member.workStatus!}";
            //营业信息

            Report.ParameterByName("merchantName").AsString = "${merchant.merchantName!}";
            Report.ParameterByName("merchantBrand1").AsString = "${one!}";
            Report.ParameterByName("merchantBrand2").AsString = "${two!}";
            Report.ParameterByName("merchantAddress").AsString = "${merchant.merchantAddress!}";
            Report.ParameterByName("merchantZipCode").AsString = "471000";
            Report.ParameterByName("registeredCapital").AsString = "${merchant.registeredCapital!0}";
            Report.ParameterByName("businessScope").AsString = "${merchant.businessScope!}";
            Report.ParameterByName("employees").AsString = "${merchant.employees!}";
            Report.ParameterByName("registeredCapital").AsString = "${merchant.registeredCapital!}";

            ReportViewer.Start();
        }
    </script>
</head>

<body onload="window_onload()">
<script type="text/javascript">
    CreateDisplayViewerEx("100%", "100%", "/static/report/merchant/apply/apply.grf","",true, "");
</script>
</body>
</html>